package com.cloudfun.campusshare.common.model.vo;

import com.cloudfun.campusshare.util.EnumInteger;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author wangxiyuan
 * @description
 * @createDate 2021/5/19 9:19
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "液体泵操作VO")
public class PumpWorkVO {
    @ApiModelProperty(value = "设备识别码")
    @NotEmpty(message = "设备识别码不能为空")
    @Length(max = 40, message = "设备识别码过长，限制40个字")
    private String deviceId;

    @ApiModelProperty(value = "启动泵时间限制类型")
    @EnumInteger(values = {0,1, 2, 3, 4, 5}, message = "启动泵时间限制类型")
    private int pumpType;

    @ApiModelProperty(value = "1号泵工作时间")
    private int firstPumpWorkTime;

    @ApiModelProperty(value = "1号泵延迟工作时间")
    private int firstPumpDelayTime;

    @ApiModelProperty(value = "2号泵工作时间")
    private int secondPumpWorkTime;

    @ApiModelProperty(value = "2号泵延迟工作时间")
    private int secondPumpDelayTime;

    private String orderId;
}
